package org.itcast.annotationandresttemplate.swaggerTest.entity;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum SwaggerStatus {

    ACTIVE(1,"active"),
    UNACTIVE(0,"unactive");

    SwaggerStatus(int code,String desc) {
        this.code = code;
        this.desc = desc;
    }

    @EnumValue
    @JsonValue
    private final int code;

    private final String desc;


}
